#region Using directives
using System;
using System.Collections.Generic;
using System.Text;
using webapp4U.DAL;
#endregion


namespace webapp4U.BOL
{
	 public class FAQ : BizObject
	 {
         #region Member Variables

         private Int32 _faqID;

         private String _full_name;

         private String _phone;

         private String _email;

         private String _questions;

         private DateTime _questions_date;

         private String _answer;

         private DateTime _answer_date;

         private String _added_by;

         private Boolean _answered;

         private Boolean _display;

         private String _id_cate;

         private String _language_code;

         #endregion



         #region Public Properties

         public Int32 FAQID
         {
             get { return _faqID; }
             set { _faqID = value; }
         }

         public String FullName
         {
             get { return _full_name; }
             set { _full_name = value; }
         }

         public String Phone
         {
             get { return _phone; }
             set { _phone = value; }
         }

         public String Email
         {
             get { return _email; }
             set { _email = value; }
         }

         public String Questions
         {
             get { return _questions; }
             set { _questions = value; }
         }

         public DateTime QuestionsDate
         {
             get { return _questions_date; }
             set { _questions_date = value; }
         }
                  
         public String Answer
         {
             get { return _answer; }
             set { _answer = value; }
         }

         public DateTime AnswerDate
         {
             get { return _answer_date; }
             set { _answer_date = value; }
         }

         public String AddedBy
         {
             get { return _added_by; }
             set { _added_by = value; }
         }

         public Boolean Answered
         {
             get { return _answered; }
             set { _answered = value; }
         }

         public Boolean Display
         {
             get { return _display; }
             set { _display = value; }
         }

         public String IDCate
         {
             get { return _id_cate; }
             set { _id_cate = value; }
         }

        public String LanguageCode
         {
             get { return _language_code; }
             set { _language_code = value; }
         }

         #endregion


	     #region public static Methods

        

       
         public static List<FAQ> Search(string Keyword)
         {
             FAQDAL db = new FAQDAL();
             return db.Search(Keyword);
         }

	     public static int Insert(FAQ obj)
	     {
		     FAQDAL db = new FAQDAL();
		     return db.Insert(obj);
	     }

	     public static bool Update(FAQ obj)
	     {
		     FAQDAL db = new FAQDAL();
		     return db.Update(obj);
	     }

	     public static bool Delete(Int32 FAQID)
         {
         
             FAQDAL db = new FAQDAL();
             return db.Delete(FAQID);         
	     }

	     public static FAQ GetFAQByID(Int32 FAQID)
	     {
		     FAQDAL db = new FAQDAL();
		     return db.GetFAQByID(FAQID);
	     }

	     //Get All FAQ
	     public static List<FAQ> GetAllFAQ(string LanguageCode)
	     {
		     FAQDAL db = new FAQDAL();
		     return db.GetAllFAQ(1, MAXROWS, LanguageCode);
	     }

         //Get All FAQ
         public static List<FAQ> GetAllFAQ(int PageIndex, int PageSize, string LanguageCode)
         {
             FAQDAL db = new FAQDAL();
             return db.GetAllFAQ(PageIndex, PageSize, LanguageCode);
         }

	     // Get Count All records of Table  FAQ
	     public static int GetCountFAQ(string LanguageCode)
	     {
		     FAQDAL db = new FAQDAL();
		     return db.GetCountFAQ(LanguageCode);
	     }

	     #endregion
	 }
}
